//package com.sky.security;
//
//import com.fasterxml.jackson.core.JsonParser;
//import com.fasterxml.jackson.databind.DeserializationContext;
//import com.fasterxml.jackson.databind.JsonDeserializer;
//import org.springframework.security.core.GrantedAuthority;
//import org.springframework.security.core.authority.SimpleGrantedAuthority;
//
//import java.io.IOException;
//
//public class GrantedAuthorityDeserializer extends JsonDeserializer<GrantedAuthority> {
//    @Override
//    public GrantedAuthority deserialize(JsonParser p, DeserializationContext ctxt) throws IOException {
//        return new SimpleGrantedAuthority(p.getText());
//    }
//}
